Wiki
Clone wikiberemiz / How to test Beremiz translation
How to test Beremiz/PLCOpenEditor translation
Testing translation is pretty easy.
-
Clone Beremiz repository
hg clone https://bitbucket.org/skvorl/beremiz
-
Go into i18n directory.
There are some short instruction in README file there.
Files Messages.pot and app.fil in the repository are up-to-date already. -
Download Beremiz resource PO file 'for use' for language you want to test from transifex.com
-
Place it into i18n directory and rename to 'Beremiz_<your_locale>.po'
For example,mv for_use_beremiz-ide_beremiz_hu_HU.po Beremiz_hu_HU.po
-
Generate MO files by running following command in i18n directory
python mki18n.py -m --moTarget=../locale --domain=Beremiz
This should create locale/<your_local>/Beremiz.mo file.
-
Test translation. To do this go to root directory of the repository and run following command(s)
LC_ALL=<your_locale>.utf-8 ./Beremiz.py LC_ALL=<your_locale>.utf-8 ./PLCOpenEditor.py
For example,
LC_ALL=hu_HU.utf-8 ./Beremiz.py LC_ALL=hu_HU.utf-8 ./PLCOpenEditor.py
Updated